﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using TFXK.BLL;
using TFXK.Common;
using log4net;
using TFXK.Model;

public partial class HYMain : System.Web.UI.MasterPage
{
    private static readonly ILog log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
    private static readonly CategoryBLL bllCategory = new CategoryBLL();
    private static readonly NewsBLL bllNews = new NewsBLL();
    private static readonly HotelBLL bllHotel = new HotelBLL();
    private static readonly TravelLinesBLL bllTravelLines = new TravelLinesBLL();
    int rowCount = 0;
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            if (!IsPostBack)
            {
                BindTJ();
            }
        }
        catch (Exception ex)
        {
            log.Error(ex.Message);
        }
    }
    //推荐
    public void BindTJ()
    {

        this.rptHotelTJList.DataSource = bllHotel.GetList("isTJ=1");
        rptHotelTJList.DataBind();
    }

    public string SetStarWidth(object obj)
    {
        try
        {
            int num = int.Parse(obj + "");
            return num * 12 + "";
        }
        catch
        {
            return "0";
        }
    }
}
